Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💩 Turn off the background checks for fleet deployments #1151

Conversation

shankari
Copy link
Contributor

@shankari shankari commented May 5, 2024

Since the fleet deployments are installed on work phones, and the background restriction is apparently grayed out on android work phones.
e-mission/e-mission-docs#1070

This is a hack (hence the 💩 emoji) but it will allow us to make progress through the onboarding, get the logs and then resolve the issue the right way. Or if we can't figure out how to access it the right way, this can become a config option for deployments that plan to use work phones.

This should unblock
e-mission/e-mission-docs#1070 (comment)

Since the fleet deployments are installed on work phones, and the background restriction is apparently grayed out on android work phones.
e-mission/e-mission-docs#1070

This is a hack (hence the 💩 emoji) but it will allow us to make progress
through the onboarding, get the logs and then resolve the issue the right way.
Or if we can't figure out how to access it the right way, this can become a
config option for deployments that plan to use work phones.

This should unblock
e-mission/e-mission-docs#1070 (comment)
Copy link

codecov bot commented May 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 26.40%. Comparing base (20b9e1a) to head (9921c52).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1151      +/-   ##
==========================================
- Coverage   26.42%   26.40%   -0.02%     
==========================================
  Files         114      114              
  Lines        4980     4983       +3     
  Branches     1062     1064       +2     
==========================================
  Hits         1316     1316              
- Misses       3662     3665       +3     
  Partials        2        2              
Flag Coverage Δ
unit 26.40% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
www/js/usePermissionStatus.ts 0.00% <0.00%> (ø)

@shankari
Copy link
Contributor Author

shankari commented May 5, 2024

First round Fermata First round godcgo Second round Fermata Second round godcgo
Screenshot 2024-05-05 at 11 49 37 AM Screenshot 2024-05-05 at 11 53 27 AM Screenshot 2024-05-05 at 12 07 09 PM Screenshot 2024-05-05 at 12 09 46 PM

@shankari shankari force-pushed the hack_to_disable_unused_app_check_for_android_fermata branch from 2bf1aab to 0ec199b Compare May 5, 2024 19:12
In the previous commit, we had disabled all android background checks.
This means that the optimization check would also be disabled, and we would not
be able to start the foreground service from the background.

Let's change this to only disable to unused apps check
@shankari shankari force-pushed the hack_to_disable_unused_app_check_for_android_fermata branch from 0ec199b to 9921c52 Compare May 5, 2024 19:13
@shankari
Copy link
Contributor Author

shankari commented May 5, 2024

There are no current unit tests for the permission screen.
Since this is hack code (note 💩), I am not inclined to set up the test framework just to test this.
All tests other than code coverage pass.

I am going to go ahead and merge this.

@shankari shankari merged commit 9f3fc59 into e-mission:master May 5, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant